<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/purchase.js" ></script>
<title>入库处理</title>
<style>
.p_del{height:14px; width:14px;background:url(/fuman/images/no.gif) no-repeat;text-decoration:none;}
.p_img{width:100px;}
#search_rs{width:800px;position:absolute;background:#fff;border:1px solid gray;}
#search_rs .thead td{background:gray;color:#fff;}
#search_rs td{background:#f1f1f1;}
#search_rs img{height:30px;}
.price{width:60px;height:22px;border:1px solid #A6A6A6;line-height:22px;padding:0 0 0 2px;font-size:14px;line-height:20px;}
.num{width:60px;height:22px;border:1px solid #A6A6A6;line-height:22px;padding:0 0 0 2px;font-size:14px;line-height:20px;}
.total{width:60px;height:22px;border:1px solid #A6A6A6;line-height:22px;padding:0 0 0 2px;font-size:14px;line-height:20px;}
</style>
<script language="javascript">

</script>
<body class="withvernav">
<div class="bodywrapper">
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">入库处理</h1>
      <span class="pagedesc"></span>
      <div class="menulist">
        <ul class="profile_summary">
         
        </ul>
      </div>
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
        <form class="stdform stdform2"  id="goodsForm" method="post" action="#">
        <input type="hidden" name="pid" value="{{$detail.id}}">
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
              <tr>
                <th colspan="8" class="head1">采购单信息</th>
              </tr>
            </thead>
            <tr>
             <td width="12%" align="right">采购编号：</td>
              <td width="12%">{{$detail.orderstockid}}</td>
              <td width="12%" align="right">采购人：</td>
              <td width="12%">{{$detail.createuser}}</td>
              <td width="8%" height="40" align="right">入库仓：</td>
              <td width="7%">{{$detail.storagename}}</td>
              <td width="7%" align="right">采购时间：</td>
              <td width="12%">{{$detail.opertime}}</td>
             
            </tr>
         
          
            {{if $detail.memo}}
            <tr>
            <td align="right">备注：</td>
              <td height="40" colspan="3">
{{$detail.memo}}        </td>
            </tr>
            {{/if}}
          </table>
        
       
           <br> <br>
           
          <div class="px1" style="background: #FFFFCC;border: 1px solid #CCCCCC;height: 24px; width:100px;padding: 10px 5px 0px 5px; margin-bottom:10px;">
                <img src="/fuman/images/barcode.png">
                <a href="#" onClick="printbar({{$detail.cang}})">打印条形码</a></div>
         
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;" id="purchase_list">
          <thead>
  

            <tr>
            <td height="35" width="5%"  bgcolor="#FEFFF1"><input onClick="allSelect('idarr[]')" type="checkbox"></td>
              <td height="35" width="10%"  bgcolor="#FEFFF1"><b>商品图片</b></td>
              <td  bgcolor="#FEFFF1"><b>商品名称</b></td>
              <td width="15%" bgcolor="#FEFFF1"><b>商品编号</b></td>
              <td width="8%" bgcolor="#FEFFF1"><b>数量</b></td>
              <td width="7%" bgcolor="#FEFFF1">质检数</td>
              <td width="7%" bgcolor="#FEFFF1"><strong>扫描入库数</strong></td>
            </tr>
            </thead>
             {{foreach from=$detail_list item=li key=key}}
            <tr>
              <td width="3%" bgcolor="#FFFFFF">
                <input name="idarr[]" type="checkbox" class="none" id="ppid[]" value="{{$li.id}}" />
             
              
              </td>
              <td width="32%" bgcolor="#FFFFFF"><div class="lbt"><a href="/{{$li.imagesurl}}" target="_blank"><img src=/{{$li.imagesurl}} width="60" height="60"></a></div>
                  </td>
              <td bgcolor="#FFFFFF">{{$li.good_name}}</td>
              <td bgcolor="#FFFFFF">{{$li.good_no}}</td>
             
              <td bgcolor="#FFFFFF">{{$li.nums}}</td>
              <td bgcolor="#FFFFFF">
               
              {{$li.qualityinNum}}</td>
              <td bgcolor="#FFFFFF">
              <span id="innums{{$li.id}}">{{if $li.getnum != ""}}{{$li.getnum}}{{else}}0{{/if}}</span>
              
              </td>
            </tr>
           {{/foreach}}
          </table>
          
          <br>
          
            <tr>
                <td bgcolor="#FFFFFF" colspan="8">   <button type="button"  onclick="savefut({{$detail.id}})"class="btn btn-primary" > 全部扫描入库 </button>
                
               
              </td>
          </tr>
          </table>
       
        </form>
        
       
      
    </div>
    <!--contentwrapper--> 
    
  </div>
  <!-- centercontent --> 
  
</div>
<!--bodywrapper-->

</body>
</html>